package com.example.websocket.service.impl;

import com.example.websocket.dao.GroupMessageMapper;
import com.example.websocket.entity.GroupMessage;
import com.example.websocket.service.IGroupMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupMessageServiceImpl implements IGroupMessageService {
    @Autowired
    GroupMessageMapper groupMessageMapper;

    public int insert(GroupMessage record) {
        return groupMessageMapper.insert(record);
    }

    @Override
    public List<GroupMessage> getRecent(int groupid) {
        return groupMessageMapper.getRecent(groupid);
    }



}
